From: Giovanni Campagna Date: Mon, 13 Feb 2012 14:22:55 +0000 (+0100) Subject: extension-prefs-tool: fix sensitivity of combobox items X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7055 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=41f0e133a9e8c2cdf6d6cf3ebed7dc8ec7e1c871;p=gnome-shell.git extension-prefs-tool: fix sensitivity of combobox items Extensions are load asynchronously, and they're availability can change at times, so sensitivity must sometimes be restored to true. https://bugzilla.gnome.org/show_bug.cgi?id=670006 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 68603d77e..622d0ad26 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -70,8 +70,7 @@ const Application = new Lang.Class({ _setExtensionInsensitive: function(layout, cell, model, iter, data) { let uuid = model.get_value(iter, 0); - if (!this._extensionAvailable(uuid)) - cell.set_sensitive(false); + cell.set_sensitive(this._extensionAvailable(uuid)); }, _getExtensionPrefsModule: function(extension) {